<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
// import HelloWorld from './components/HelloWorld.vue'
import {ref} from 'vue'
import { AnswerSheet,SheetItem } from './components/answer_sheet'

const tab_index=ref('1-1')

const cur_sheet=ref(new Array<SheetItem>())
const start_qid=ref(-1)


const start_exam=(sheet:SheetItem[],qid:number)=>{
  cur_sheet.value=sheet 
  start_qid.value=qid
  tab_index.value='2'
}
</script>

<template>
  <el-container>
    <el-aside width="150px">
      <Navigator></Navigator>
    </el-aside>
    <el-main>

      <router-view></router-view>
    </el-main>
  </el-container>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
*{
  margin: 0;
  padding: 0;
  font-size: 16px;
}

body{
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
  min-width: 750px;
}
.el-container{
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
}
.el-aside{
  background-color: #333;
  height: 100%;
  overflow: hidden;
}
.el-main{
  margin: 20px;
  padding: 0;
  border-radius: 10px;
}
</style>
